package cn.zhaoyuening.fandamin.domain;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created by Buynow on 2017/7/2.
 * <h3>用户与角色关联 多对多</h3>
 */
@Entity
@Table(name = "t_roleAdminUser")
public class RoleAdminUser implements Serializable{
    @Id
    private Long roleId;
    @Id
    private String adminUserName;

    public RoleAdminUser(Long roleId, String adminUserName) {
        this.roleId = roleId;
        this.adminUserName = adminUserName;
    }

    public RoleAdminUser() {
    }

    public Long getRoleId() {
        return roleId;
    }

    public RoleAdminUser setRoleId(Long roleId) {
        this.roleId = roleId;
        return this;
    }

    public String getAdminUserName() {
        return adminUserName;
    }

    public RoleAdminUser setAdminUserName(String adminUserName) {
        this.adminUserName = adminUserName;
        return this;
    }
}
